﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RequestDemo
{
    public class ResponseCode
    {
        /// <summary>
        /// 响应成功代码
        /// </summary>
        public const String RESPONSE_SUCCESS_CODE = "0000";

        /// <summary>
        /// 响应失败代码
        /// </summary>
        public const String RESPONSE_ERROR_CODE = "0001";

        /// <summary>
        /// TOKEN失效
        /// </summary>
        public const String RESPONSE_TOKEN_ERROR_CODE = "0002";

        /// <summary>
        /// 接口异常
        /// </summary>
        public const String RESPONSE_EXCEPTION_CODE = "0003";

        /// <summary>
        /// 系统全局错误
        /// </summary>
        public const String SYS_EXCEPTION_CODE = "0004";
        /// <summary>
        /// 接口异常，数据格式错误
        /// </summary>
        public const String RESPONSE_ERROR_DATA_FORMAT = "0101";

        /// <summary>
        /// 字段不能为空
        /// </summary>
        public const String RESPONSE_ERROR_FIELD_EMPTY = "0201";

        /// <summary>
        /// 字段过长
        /// </summary>
        public const String RESPONSE_ERROR_FIELD_LONG = "0202";

        /// <summary>
        /// 字段非数字
        /// </summary>
        public const String RESPONSE_ERROR_FIELD_NOTNUM = "0203";

        /// <summary>
        /// 字段不能含有中文
        /// </summary>
        public const String RESPONSE_ERROR_FIELD_NOTCN = "0204";

        /// <summary>
        /// 日期格式不正确
        /// </summary>
        public const String RESPONSE_ERROR_DATE_FORMAT = "0205";

        /// <summary>
        /// 找不到字典
        /// </summary>
        public const String RESPONSE_ERROR_NO_DIC = "0206";
        /// <summary>
        /// 其他
        /// </summary>
        public const String RESPONSE_ERROR_OTHER = "0207";
    }
}
